pkgname=kpackage
pkgver=5.36.0
pkgrel=1
pkgdesc='Framework that lets applications manage user installable packages of non-binary assets'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="karchive ki18n"
makedepends="extra-cmake-modules qt5-qttools-dev python kdoctools doxygen kcoreaddons"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DKDE_INSTALL_LIBEXECDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}

sha512sums="550c1662c4a717b1d0b7ad0b33566d8f6c73cd2577c16cca90d19664cce733dfcea3ac913656aa5f61d423867fd7af22c27d11c88537413409cee1ec141d1e04  kpackage-5.36.0.tar.xz"
